﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;


namespace EZCRS.HCMS.Entity
{
    #region HCRS_Province
    /// <summary>
    /// 省份
    /// </summary>
    [DataFieldAttribute("HCRS_Province")]
    public class HCRS_Province
    {
        private int? _id;
        private int? _chinaAreaID;
        private string _name = String.Empty;
        private string _remark = String.Empty;

        public HCRS_Province()
        {
        }

        public HCRS_Province(DataRow dr)
        {
            if (dr!=null)
            {
                _id = Convert.ToInt32(dr["provinceid"].ToString());
                _chinaAreaID = Convert.ToInt32(dr["chinaareaid"].ToString());
                _name = dr["name"].ToString();
                _remark = dr["remark"].ToString();
            }
        }

       

        #region Public Properties
        [DataFieldAttribute("ProvinceID","pk")]
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        [DataFieldAttribute("ChinaAreaID")]
        public int? ChinaAreaID
        {
            get { return _chinaAreaID; }
            set { _chinaAreaID = value; }
        }

        [DataFieldAttribute("Name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [DataFieldAttribute("Remark")]
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }
        #endregion
    }
    #endregion
}
